<?php
header('Content-Type: text/html; charset=UTF-8');

session_start();

@$userID =  $_SESSION['userId'];

if(empty($userID)){
	die(json_encode(array('status'=>false,'info'=>'操作超时！')));
};
require 'lib/db.php';

@$user =  dbSelect('select money from user where id=:id',array('id'=>$userID));

if(empty($user)){
	die(json_encode(array('status'=>false,'info'=>'操作超时！')));
}
echo json_encode(array('status'=>false,'money'=>$user['money']));